package com.java.support.redis;

public class JedisResource{
	
    private String host;
    private int port;
    private int maxActive;
    private int maxIdle;
    private int maxWait;
    private boolean testOnBorrow;
    private int timeout;
    private String password;

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}
	public int getMaxActive() {
		return maxActive;
	}

	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}
	public int getMaxIdle() {
		return maxIdle;
	}

	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}
	public int getMaxWait() {
		return maxWait;
	}

	public void setMaxWait(int maxWait) {
		this.maxWait = maxWait;
	}
	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}

	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "JedisDataSource [host=" + host + ", port=" + port + ", maxActive=" + maxActive + ", maxIdle=" + maxIdle
				+ ", maxWait=" + maxWait + ", testOnBorrow=" + testOnBorrow + ", timeout=" + timeout + ", password="
				+ password + "]";
	}

}
